package com.star.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 *      广告
 * </p>
 *
 * @author Star
 * @since 2021-04-21
 */
@TableName("tb_advertising")
public class Advertising extends Model<Advertising> {

    private static final long serialVersionUID = 1L;

    /**
     * 广告编号
     */
    @TableId(value = "ad_id", type = IdType.AUTO)
    private Integer adId;
    /**
     * 店铺编号
     */
    private Integer shopId;
    /**
     * 广告图片
     */
    @TableField("ad_image_Url")
    private String adImageUrl;
    /**
     * 广告状态
     */
    private Integer adState;


    public Integer getAdId() {
        return adId;
    }

    public void setAdId(Integer adId) {
        this.adId = adId;
    }

    public Integer getShopId() {
        return shopId;
    }

    public void setShopId(Integer shopId) {
        this.shopId = shopId;
    }

    public String getAdImageUrl() {
        return adImageUrl;
    }

    public void setAdImageUrl(String adImageUrl) {
        this.adImageUrl = adImageUrl;
    }

    public Integer getAdState() {
        return adState;
    }

    public void setAdState(Integer adState) {
        this.adState = adState;
    }

    @Override
    protected Serializable pkVal() {
        return this.adId;
    }

    @Override
    public String toString() {
        return "Advertising{" +
        ", adId=" + adId +
        ", shopId=" + shopId +
        ", adImageUrl=" + adImageUrl +
        ", adState=" + adState +
        "}";
    }
}
